<script setup>
import HelloWorld from './components/HelloWorld.vue'
</script>

<template>
  <router-view />
</template>

<style>
:root {
  --el-color-primary: #003366;
  --el-color-primary-light-3: #335c85;
  --el-color-primary-light-5: #668099;
  --el-color-primary-light-7: #99a3b2;
  --el-color-primary-light-8: #b2b9c4;
  --el-color-primary-light-9: #ccd1d7;
  --el-color-primary-dark-2: #002952;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 参考图片：页面边界白色背景 */
  background: #ffffff;
  position: relative;
  overflow-x: hidden;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* 移除背景装饰，使用纯色背景 */
body::before {
  display: none;
}

#app {
  height: calc(100vh - 16px);
  position: relative;
  z-index: 1;
  /* 参考图片：内容区域圆角，渐变背景 */
  background: linear-gradient(135deg, #C5CDD8 0%, #C8D0DB 25%, #CBD3DE 50%, #C8D0DB 75%, #C5CDD8 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  background-attachment: fixed;
  border-radius: 24px;
  margin: 8px;
  overflow: hidden;
  box-sizing: border-box;
}

/* 移动端优化 */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* 触摸优化 */
* {
  -webkit-tap-highlight-color: transparent;
}

/* 防止页面缩放 */
@media screen and (max-width: 768px) {
  body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
}

/* 移动端点击优化 */
button, input, textarea, select {
  -webkit-appearance: none;
  border-radius: 0;
}

/* 禁用长按菜单 */
* {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 允许输入框选择 */
input, textarea {
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
</style>
